<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title></title>
    <link rel="stylesheet" href="/admin/style1/public.css">
    <link rel="stylesheet" href="/admin/style1/rili.css">
    <link rel="stylesheet" href="/admin/style1/home.css">
    <script src="/admin/js/laydate.dev.js"></script>
    <script src="/admin/js/jquery-1.8.3.min.js"></script>
    <link rel="stylesheet" href="/admin/layer/skin/default/layer.css">
    <script src="/admin/layer/layer.js"></script>
    <script>
        $(function(){

            $('#zhuxiao').click(function(){


                layer.confirm('确定退出登录?',{btn:['确定','取消']},function(){

                    $(location).attr('href',"{{url('center/logout')}}");  //jquery跳转

                },function(){

                });
            });

            $('#zhuye').click(function(){


                layer.confirm('确定回到主页?',{btn:['确定','取消']},function(){

                    $(location).attr('href',"{{url('/')}}");  //jquery跳转

                },function(){

                });
            });
        });
    </script>
</head>
<body>
<div id="header">
    <div class="header_center">
        <div class="header_center_left" style="position: absolute;left: 0;"> ctr后台管理系统</div>
        <!--<div class="header_center_center">-->
        <!--<input type="text" placeholder="请输入搜索内容"/>-->
        <!--<p>搜索</p>-->
        <!--</div>-->
        <div class="header_center_right" style="position: absolute;right: 0;">
            <div class="userone">
                <img src="/imgs/touxiang.jpg" alt=""/>
                <p class="p1">当前用户</p>
                <p>{{session('admin')['nickname']}}</p>
            </div>
            <ul>
                <li><img style="cursor: pointer;" id='zhuye' src="/imgs/pic1.png" alt=""/></li>
                <li><img style="cursor: pointer;" id='zhuxiao' src="/imgs/pic3.png" alt=""/></li>
            </ul>
        </div>
    </div>
</div>
<div id="content">
    <div id="left">
        <ul>
            <a href="{{url('center/order/index')}}"><li @if($flag=='charge') class="active" @endif>订单管理</li></a>
            <a href="{{url('center/member')}}"><li @if($flag=='member') class="active" @endif>会员管理</li></a>
            <a href="{{url('center/tx')}}"><li @if($flag=='txorder') class="active" @endif>提现管理</li></a>
            <a href="{{url('center/group')}}"><li @if($flag=='group') class="active" @endif>团队管理</li></a>
            <a href="{{url('center/setting')}}"><li @if($flag=='setting') class="active" @endif>系统设置</li></a>

        </ul>
    </div>
    <div id="right">
        @yield('title')
        <div class="main">

             @yield('content')

        </div>
    </div>
</div>
<script>


</script>
</body>
</html>